package com.example.settlement.service;

import com.example.settlement.entity.JoinInfo;
import com.example.settlement.entity.UserInfo;
import com.example.settlement.mapper.JoinInfoMapper;
import com.example.settlement.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JoinInfoService {

    @Autowired
    private JoinInfoMapper joinInfoMapper;

    public List<JoinInfo> getJoinInfoByUserId(Long userId) {
        return joinInfoMapper.findByUserId(userId);
    }
}
